package com.woniuxy.driverschool.mapper;

import com.woniuxy.driverschool.entity.CredentialManagement;
import com.woniuxy.driverschool.entity.Student;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.ibatis.annotations.Param;
import org.apache.shiro.authc.credential.CredentialsMatcher;

import java.util.Date;
import java.util.List;

/**
 * 证件管理数据层
 * @author shkstart
 * @create 2021-09-29 10:05
 */
public interface CredentialManagementMapper {
    //通过全科则添加学员证件信息
    void insertCredentialManagement(CredentialManagement credentialManagement);
    //修改学员证件信息
    void updateCredentialManagement(CredentialManagement credentialManagement);
    //分页查询信息
    List<CredentialManagement> selectCredentialManagementByPage(@Param("credentialManagement")CredentialManagement credentialManagement,
                                                                @Param("pageIndex")Integer pageInedx, @Param("pageSize") Integer pageSize,
                                                                @Param("getStartTime") Date getStartTime, @Param("getEndTime") Date getEndTime);
    //总条数
    int selectCountCredentialManagementByPage(@Param("credentialManagement")CredentialManagement credentialManagement,
                                              @Param("getStartTime") Date getStartTime, @Param("getEndTime") Date getEndTime);
}
